!!! 5

%html
  %head
    %meta(charset="utf-8")
    %title= [@title, "Redis"].compact.join(" – ")
    %link(rel="stylesheet" href="/styles.css")
    %link(rel="shortcut icon" href="/images/favicon.png")
    %link(rel="search" type="application/opensearchdescription+xml" title="Look up a Redis command" href="/opensearch.xml")
    %meta(name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0")

    :javascript
      (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
      new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
      j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
      'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
      })(window,document,'script','dataLayer','GTM-T4MTBKP');


  %body(class="#{@css.join(" ") if @css}")

    %noscript
      %iframe(src="https://www.googletagmanager.com/ns.html?id=GTM-T4MTBKP"
              height="0" width="0"
              style="display:none;visibility:hidden")

    .mobile-menu.slideout-menu
      %header.menu-header

      %section.menu-section
        %ul.menu-section-list
          %li
            %a.home(href="/") Home
          %li
            %a(href="/commands") Commands
          %li
            %a(href="/clients") Clients
          %li
            %a(href="/documentation") Documentation
          %li
            %a(href="/community") Community
          %li
            %a(href="/download") Download
          %li
            %a(href="/modules") Modules
          %li
            %a(href="/support") Support

    .site-wrapper

      %header.site-header
        %nav.container
          .mobile-header
            %button.btn-hamburger.js-slideout-toggle
              %span.fa.fa-bars

            %a.home(href="/")
              %img(src="/images/redis-white.png" alt="Redis")

            %a.tryfree(href="https://redis.com/try-free") Try Free

          .desktop-header
            %a.home(href="/")
              %img(src="/images/redis-white.png" alt="Redis")
            %a(href="/commands") Commands
            %a(href="/clients") Clients
            %a(href="/documentation") Documentation
            %a(href="/community") Community
            %a(href="/download") Download
            %a(href="/modules") Modules
            %a(href="/support") Support
            %a.tryfree(href="https://redis.com/try-free") Try Free

      - if Date.today < Date.new(2022, 4, 1)
        %aside.wide-callout
          .container
            %a(href="https://redis.com/redisdays/") RedisDays registration
            is open! Don’t miss our big announcements.

      = content

      %footer.site-footer
        .container
          %p
            This website is
            <a href="https://github.com/redis/redis-io">open source software</a>
            and is sponsored by
            <a href="https://redis.com">Redis Ltd.</a>
            See all <a href="/topics/sponsors">credits</a>.

    %script(src="https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js")
    %script(src="/app.js?#{File.mtime("public/app.js").to_i}")
